package com.gitee.feizns.quickstart.web.Interceptors.bucket4j;

import com.gitee.feizns.quickstart.web.ex.HttpException;
import org.springframework.http.HttpStatus;

/**
 * 请求到达上限
 * @author feizns
 * @since 2025/04/08
 */
public class RateLimitException extends HttpException {

    public RateLimitException() {
        super(HttpStatus.TOO_MANY_REQUESTS, "请求到达上限！请稍后重试！！！");
    }

    public RateLimitException(String message) {
        super(HttpStatus.TOO_MANY_REQUESTS, message);
    }

}
